;(function(global) {
  global.dialog = {
    template: `
            <div v-show="isShow" class="black-overlay" @click="isShow = false">
                <div class="dialog-top"></div>
                <div class="dialog">
                    <van-cell class="border-bottom" 
                        v-for="(item,index) in dialogLsit" :key="index" :title="item.title" @click="">
                        <div slot="icon" class="list-icon flex-wrap">
                            <van-icon :name="item.icon" class="flex-center-wrap"></van-icon>
                        </div>
                    </van-cell>
                </div>
          </div>  
        `,
    data() {
      return {
        dialogLsit: [
          {
            title: '首页',
            icon: 'shop'
          },
          {
            title: '科目',
            icon: 'cluster'
          },
          {
            title: '个人中心',
            icon: 'manager'
          }
        ],
        isShow: false
      }
    },
    computed: {},
    methods: {},
    created() {},
    mounted() {}
  }
})(window)
